//
//  GasStationDriverManager.h
//  NtoccDriverNew
//
//  Created by niyongsheng on 2022/10/18.
//  Copyright © 2022 GCY. All rights reserved.
//

#import <Foundation/Foundation.h>

#define GSDManager                     [GasStationDriverManager sharedGasStationDriverManager]
#define GSDDetailUserInfo              [[GasStationDriverManager sharedGasStationDriverManager] userInfo]

@interface GasStationDriverModel : NSObject
@property (nonatomic , copy) NSString              * ID;
@property (nonatomic , copy) NSString              * driverCode;
@property (nonatomic , copy) NSString              * oilCard;
@property (nonatomic , copy) NSString              * electricityCard;
@property (nonatomic , copy) NSString              * gasCard;
@property (nonatomic , copy) NSString              * gmtModified;
@property (nonatomic , copy) NSString              * modifiedBy;
@property (nonatomic , copy) NSString              * branchCode;
@property (nonatomic , copy) NSString              * code;
@property (nonatomic , assign) NSInteger              deleted;
@property (nonatomic , copy) NSString              * createdBy;
@property (nonatomic , copy) NSString              * gmtCreated;
@property (nonatomic , copy) NSString              * authTime;
@property (nonatomic , assign) NSInteger              isSendLogink;
@property (nonatomic , copy) NSString              * sendError;
@property (nonatomic , assign) NSInteger              isSendTax;
@property (nonatomic , assign) NSInteger              authStatus;
@property (nonatomic , assign) NSInteger              isFreeze;
@end


typedef void (^GasStationDriverManagerCompletion)(GasStationDriverModel *userInfo);

@interface GasStationDriverManager : NSObject

+ (GasStationDriverManager *)sharedGasStationDriverManager;

@property(nonatomic, strong) GasStationDriverModel *userInfo;

@property(nonatomic, assign) BOOL isNetNormal;

- (void)refreshUserInfo;
- (void)refreshUserInfo:(GasStationDriverManagerCompletion)completion;

- (void)clearUserInfo;

@end
